<template>
  <div class="home">
    <main>
      <router-view></router-view>
    </main>
    <footer>
      <router-link to="/home/index"><van-icon name="home-o" />首页</router-link>
      <router-link to="/home/room"><van-icon name="search" />找房</router-link>
      <router-link to="/home/my"><van-icon name="contact" />我的</router-link>
    </footer>
  </div>
</template>

<script>
export default {
  data () {
    return {
      active: 'home'
    }
  },
  methods: {
    filterRoute () {}
  }
}
</script>

<style lang="scss">
.home{
  width: 100%;
  height: 100%;
  background: #f2f2f2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
main{
  width: 100%;
  flex: 1;
  overflow-y: scroll;
}
footer{
  width: 100%;
  height: 50px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  a{
    text-align: center;
    color: dimgray;
    font-size: 0.2rem;
    >.van-icon{
      font-size: 24px;
      display: block;
    }
    &.router-link-active{
      color: dodgerblue;
    }
  }
}
</style>
